﻿using System;
using System.Collections.Generic;

namespace MsTestUtilities.SolutionAnalysis.Testing
{
    public class ProjectReferenceAssert : CollectionAssertionBase<ProjectReference>
    {
        public ProjectReferenceAssert(IEnumerable<ProjectReference> items)
            : base(items)
        {            
        }

        protected override string ElementName(ProjectReference element)
        {
            return element.ParentProject.Name + " referencing '" + element.Name + "'";
        }

        public ProjectReferenceAssert Where(Predicate<ProjectReference> predicate)
        {
            base.Filter(e => predicate(e));
            return this;
        }
    }
}
